import request from '@/utils/request'

// 查询楼栋列表
export function listCourseFloor(query) {
  return request({
    url: '/course/courseFloor/list',
    method: 'get',
    params: query
  })
}

// 查询楼栋详细
export function getCourseFloor(id) {
  return request({
    url: '/course/courseFloor/' + id,
    method: 'get'
  })
}

// 新增楼栋
export function addCourseFloor(data) {
  return request({
    url: '/course/courseFloor',
    method: 'post',
    data: data
  })
}

// 修改楼栋
export function updateCourseFloor(data) {
  return request({
    url: '/course/courseFloor',
    method: 'put',
    data: data
  })
}

// 删除楼栋
export function delCourseFloor(id) {
  return request({
    url: '/course/courseFloor/' + id,
    method: 'delete'
  })
}
